body
{
    
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background:black;

}

ul
{
    position : absolute;
    top:45%;
    left:20%;
    display: flex;
    margin:0;
    padding:0;

}
ul li
{
    list-style: none;
    margin-right: 20%;
    padding-right: 10%;
}
ul li a .fa {
    position: relative;
    font-size: 20px;
    color: black;
    line-height: 40px;
    transition: .5s;
    right:35%;
    
}

ul li a {
    text-decoration: none;
    display: absolute;
    display: block;
    width: 28px;
    height: 40px;
    background: white;
    text-align: center;
    padding-left: 20px;
    transform :rotate(320deg) skew(199deg) translate(0, 0);
    transition: .5s;
   box-shadow: -20px 20px 10px rgba(0, 0, 0, 0.5);
}
ul li a:before
{
    content:'';
    position: absolute;
    top:4.99px;
    left: -9.5px;
    height: 100%;
    width: 10px;
    background: #8a6f6f;
    transform:0.5s;
    transform: skewY(-45deg);
}

ul li a:after
{
    content:'';
    position: absolute;
    bottom: -10px;
    left: -5px;
    height: 10px;
    width: 100%;
    background: #8a6f6f;
    transform:0.5s;
    transform: skewX(-45deg);

}


ul li a:hover {
    transform:rotate(710deg) translate(10px , -10px);
    transition: transform 2s ease;
    box-shadow: -50px 50px 50px rgba(0, 0, 0, .5);
}



ul li:hover .fa {
    color: #fff;
}

ul li:hover span {
    color: #fff;
}

ul li:hover:nth-child(1) a {
    background: #3b5998;
}

ul li:hover:nth-child(1) a:before {
    background: #365492;
}

ul li:hover:nth-child(1) a:after {
    background: #4a69ad;

}

ul li:hover:nth-child(2) a {
    background: #00aced;
}

ul li:hover:nth-child(2) a:before {
    background: #097aa5;
}

ul li:hover:nth-child(2) a:after {
    background: #53b9e0;
}

ul li:hover:nth-child(3) a {
    background: #0077b5;
}

ul li:hover:nth-child(3) a:before {
    background: #35a9e7;
}

ul li:hover:nth-child(3) a:after {
    background: #0077b5;
}

ul li:hover:nth-child(4) a {
    background: #e95950;
}

ul li:hover:nth-child(4) a:before {
    background: #d81c3f;
}

ul li:hover:nth-child(4) a:after {
    background: #e46880;
}
@media screen and (max-width:500px)
{

ul
{
    position : absolute;
    top:35%;
    left:40%;
    transform: translate(-50%, -50%);
    display: table-column;
    margin-top: 20%;
    margin-left: 10%;
    padding:0;

}
ul li
{
    list-style: none;
    margin: 0;

}
ul li a .fa {
    position: relative;
    font-size: 20px;
    color: black;
    line-height: 40px;
    transition: .5s;
    right:35%;
    
}

ul li a {
    text-decoration: none;
    display: absolute;
    display: block;
    width: 28px;
    height: 40px;
    margin: 50px;
    background: white;
    text-align: center;
    padding-left: 20px;
    transform :rotate(320deg) skew(199deg) translate(0, 0);
    transition: .5s;
   box-shadow: -20px 20px 10px rgba(0, 0, 0, 0.5);
}
ul li a:before
{
    content:'';
    position: absolute;
    top:4.99px;
    left: -9.5px;
    height: 100%;
    width: 10px;
    background: #8a6f6f;
    transform:0.5s;
    transform: skewY(-45deg);
}

ul li a:after
{
    content:'';
    position: absolute;
    bottom: -10px;
    left: -5px;
    height: 10px;
    width: 100%;
    background: #8a6f6f;
    transform:0.5s;
    transform: skewX(-45deg);

}

}